clear

set seed 1234

*set your path here

use "Dataset.dta"


histogram break, by(year) frequency
tsset cluster year
gen ratio=(ENEP-lagENEP)/lagENEP

*TABLE 2
sum ENEP laglogdist  lagfive ratio
sum break if year>1977

*TABLE 3*
xi: reg ENEP c.laglogdistrictm c.break i.year, cluster(cluster)
xi: reg ENEP c.laglogdist##c.break i.year, cluster(cluster)
xi: reg ENEP i.lagfive c.break i.year, cluster(cluster)
reg ENEP i.lagfive##c.break i.year, cluster(cluster)

*TABLE 4*
reg  ratio c.break i.lagf  i.year i.cluster, cluster(cluster)
reg  ratio c.break##i.lagf  i.year i.cluster, cluster(cluster)

